import request from '@/utils/request'

export function login(params) {
  return request({
    url: '/crm/crmLogin/crmLogin',
    method: 'get',
    params:params
  })
}

// export function login(username, password) {
//   return request({
//     url: '/admin/login',
//     method: 'post',
//     data: {
//       username,
//       password
//     }
//   })
// }
export function crmLoginSendSms(params) {
  return request({
    url: '/crm/crmLogin/crmLoginSendSms',
    method: 'post',
    params: params
  })
}
export function getInfo() {
  return request({
    url: '/admin/info',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/admin/logout',
    method: 'post'
  })
}
